x86/hpet: disable before reboot or kexec
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Mar 2012 13:20:23 +0000 (15:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Mar 2012 13:20:23 +0000 (15:20 +0200)
commita5e1cb8704755905940c7242f62c5e9d85957d65
treeef6acb5116ec3970c3cce65c682b62a0a02d310f
parent7db78449277c45354166ea31bf7c262daea3d8ee
x86/hpet: disable before reboot or kexec

Linux up to now is not smart enough to properly clear the HPET when it
boots, which is particularly a problem when a kdump attempt from
running under Xen is being made. Linux itself added code to work around
this to its shutdown paths quite some time ago, so let's do something
similar in Xen: Save the configuration register settings during boot,
and restore them during shutdown. This should cover the majority of
cases where the secondary kernel might not come up because timer
interrupts don't work.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/crash.c
xen/arch/x86/hpet.c
xen/arch/x86/smp.c
xen/arch/x86/time.c
xen/include/asm-x86/hpet.h